13.06.2009, 18:30
Hey can some one help me i need help with my cmd, i want it to only work by the name so if my name is Exempel_Exempel i want it to only work for that guy as use that nick name how can i fix that ?
Originally Posted by BiG_Sm0k3
have u got any start of the cmd?
|
if (strcmp(cmdtext, "/blommor1", true) == 0) { MoveObject(blomma1, 884.509,-1077.6,13.4562,2.5); MoveObject(blomma2, 884.509,-1077.2,13.4562,2.5); MoveObject(blomma3, 884.509,-1077.4,13.4562,2.5); return 1; } if (strcmp(cmdtext, "/blommor2", true) == 0) { MoveObject(blomma1, 884.509,-1077.6,23.4562,2.5); MoveObject(blomma2, 884.509,-1077.2,23.4562,2.5); MoveObject(blomma3, 884.509,-1077.4,23.4562,2.5); return 1; }
Originally Posted by MenaceX^
Do permission by their names.
if(!strcmp(playername,"Name",true)) return SendClientMessage(playerid,color,"Not Authorized."); |
Originally Posted by DracoBlue
Quote:
if(strcmp(playername,"Name",true)) return SendClientMessage(playerid,color,"Not Authorized."); - Draco |
Originally Posted by MenaceX^
Quote:
|
Originally Posted by DracoBlue
Quote:
- Draco PS: GZ to 2999 posts. |
error 017: undefined symbol "playername"