0 Members and 1 Guest are viewing this topic.
Functions aren't going to be added just because you don't know how to code it yourself...
Thanks for the help Aquarius, but it still isn't working for me. Does it matter if the player number is double digits? because I'm only using double digits for the player number.Kavukamari, it would be greatly appreciated if you did release that script, but its up to you. If you want to keep it for yourself, its fine. I'll just learn more at scripting.This is my edited script so far...function OnCommand(ID: Byte;Text: string):boolean;beginResult:=false;if GetPiece(LowerCase(Text),' ',1)='/spwnh' then beginSpawnObject(GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'x'),GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'y'),16);end;if GetPiece(LowerCase(Text),' ',1)='/spwng' then beginSpawnObject(GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'x'),GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'y'),17);end;if GetPiece(LowerCase(Text),' ',1)='/spwnf' then beginSpawnObject(GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'x'),GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'y'),18);end;if GetPiece(LowerCase(Text),' ',1)='/spwnv' then beginSpawnObject(GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'x'),GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'y'),19);end;if GetPiece(LowerCase(Text),' ',1)='/spwnp' then beginSpawnObject(GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'x'),GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'y'),20);end;if GetPiece(LowerCase(Text),' ',1)='/spwnb' then beginSpawnObject(GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'x'),GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'y'),21);end;if GetPiece(LowerCase(Text),' ',1)='/spwnc' then beginSpawnObject(GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'x'),GetPlayerStat(StrtoInt(GetPiece((Text),' ',2)),'y'),22);end;end;
Hi allI'm new here and just wanted post the same Topic.Ive some experience in programming and i could write a much shorter one....here is itfunction OnCommand(ID: Byte; Text: string): boolean;beginif GetPiece(LowerCase(Text),' ',0)='/give' then begin SpawnObject(GetPlayerStat(strtoint(GetPiece(Text, ' ', 1)),'x'),GetPlayerStat(strtoint(GetPiece(Text, ' ', 1)),'y'),strtoint(GetPiece(Text, ' ', 2)));end;end;ps if some1 find orthografical misstakes, he can keep it ;P