Guest StReeY [Dinti] Odesláno: 5. Prosinec, 2008 Share Odesláno: 5. Prosinec, 2008 ako udelam napriklad /sawnoff id ??? myslim prikaz v onplayercommand text ako normal prikaz viem ale s tym id ne.... Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 5. Prosinec, 2008 Share Odesláno: 5. Prosinec, 2008 myslim nejak takto if(strcmp(cmd, "/vosoustat", true) == 0 && k***t[playerid] == 1) {//treba pridat podminku ze to musi byt k***t if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "skus /vosoustat ID"); return 1; } kokos = strval(tmp); if(!IsPlayerConnected(kokos)){ SendClientMessage(playerid, COLOR_VYSUKANA, "Nima id"); return 1; } SetPlayerColor(kokos,COLOR_VYSUKANA); return 1; } narychlo ..mozna chyby nemam cas Link to comment Share on other sites More sharing options...
0 FreeWall 3 Odesláno: 5. Prosinec, 2008 Share Odesláno: 5. Prosinec, 2008 frenklin přístě se zdrž těch sprosťáren ... Definice DCMD ( nahoru do módu ) : #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 do OnPlayerCommandText(playerid,cmdtext); dcmd(neco,4,cmdtext); kamkoli do módu : dcmd_neco(playerid, params[]) { new hrac = strval(params); if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Použití: /neco [iD]"); if(!IsPlayerConnected(hrac)) return SendClientMessage(playerid,COLOR_RED,"Hráč není připojen na serveru !"); SetPlayerHealth(hrac,0.0); return 1; } Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 5. Prosinec, 2008 Share Odesláno: 5. Prosinec, 2008 nechtel dcmd aspon myslim Link to comment Share on other sites More sharing options...
0 FreeWall 3 Odesláno: 5. Prosinec, 2008 Share Odesláno: 5. Prosinec, 2008 myslet je někdy ho*** vědět, on říkal že nechce dcmd ? nebo říkal že chce normální příkaz ? aspoň to má i v dcmd ne. Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 5. Prosinec, 2008 Share Odesláno: 5. Prosinec, 2008 nj aspon ma dvojtou verzi Link to comment Share on other sites More sharing options...
Dotaz
Guest StReeY [Dinti]
ako udelam napriklad /sawnoff id ??? myslim prikaz v onplayercommand text ako normal prikaz viem ale s tym id ne....
Link to comment
Share on other sites
5 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now